//
//  ImageViewCell.swift
//  test-ios
//
//  Created by wyz5204 on 2023/2/11.
//

import UIKit

class ImageViewCell: UITableViewCell {
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
    }
    
    
    func bind (_ imageName : String ){
        let imageView: UIImageView = UIImageView()
        imageView.image = UIImage(named : imageName)
        imageView.addTo(contentView) { view in
            view.snp.makeConstraints { make in
                make.width.equalTo(100)
                make.height.equalTo(100)
                make.center.equalToSuperview()
            }
        }
    }
    
}
